package com.zhixi.pattern.notimportant.abstractfactorypattern.operation.humanfactory;

import com.zhixi.pattern.notimportant.abstractfactorypattern.operation.Human;
import com.zhixi.pattern.notimportant.abstractfactorypattern.operation.sex.MaleBlackHuman;
import com.zhixi.pattern.notimportant.abstractfactorypattern.operation.sex.MaleWhiteHuman;
import com.zhixi.pattern.notimportant.abstractfactorypattern.operation.sex.MaleYellowHuman;

/**
 * @作者 ShuHaoNan
 * @邮箱 shuhaonan1@gmail.com
 * @时间 2020/11/15 11:31
 */
public class MaleFactory implements HumanFactory {

    @Override
    public Human createBlackHuman() {
        return new MaleBlackHuman();
    }

    @Override
    public Human createYellowHuman() {
        return new MaleYellowHuman();
    }

    @Override
    public Human createWhiteHuman() {
        return new MaleWhiteHuman();
    }

}
